import http from '@/http/index'
//新增
export const addApi = (param:any) => {
    return http.post({
        url: "/api/teacher",
        data: param
    })
}
//列表
export const getListApi = (param:any) => {
    return http.get({
        url: '/api/teacher/list',
        params: param
    })
}
//编辑
export const editApi = (param:any) => {
    return http.put({
        url: '/api/teacher',
        data: param
    })
}
//删除
export const deleteApi = (teacherId:any) => {
    return http.delete({
        url: `/api/teacher/${teacherId}`
    })
}
